package com.yzd.learnjava.strings;

import java.util.regex.Matcher;
import java.util.regex.Pattern;

import com.yzd.learnjava.util.Print;
/*
 * Matcher/Pattern
 */
public class Finding {

	public static void main(String[] args) {
		Matcher m = Pattern.compile("\\w+").matcher("Evening id full of linnet's wings");
		while(m.find()) {
			Print.printnb(m.group() + " ");
		}
		Print.print();
		int i = 0;
		while(m.find(i)) {
			Print.printnb(m.group() + " ");
			i++;
		}

	}

}
